<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/9/28 0028
  Time: 14:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!--输出,条件,迭代标签库-->

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="fmt"%> <!--数据格式化标签库-->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="sql"%> <!--数据库相关标签库-->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="fn"%> <!--常用函数标签库-->

<html>
<head>
    <title>专家分页</title>
</head>
<body>

<form action="professorSearch.jhtml">
    <input type="text" placeholder="姓名" name="name" value="${name}"/>
    <input type="text" placeholder="电话号码" name="tele"/>
    <input type="text" placeholder="身份证号码" name="identityNumber"/>
    <input type="submit" />
</form>
${professorDelmsg}
<h2><a href="../../professorAdd.jsp">专家增加</a></h2>

<h3>分页查询</h3>
<table border="1">
      <tr>
           <td>专家编号</td>
           <td>专家名称</td>
          <td>性别</td>
           <td>出生日期</td>
           <td>身份证号码</td>
           <td>工作状况（在职or退休）</td>
           <td>毕业院校</td>
           <td>学历</td>
           <td>所学专业</td>
          <td>工作单位</td>
          <td>行政职务</td>
          <td>技术职称</td>
          <td>固定电话</td>
          <td>移动电话</td>
          <td>所在地址</td>
          <td>评审项目类型</td>
          <td>创建者用户名</td>
          <td>创建时间</td>
          <td>执行最后一次修改的用户</td>
          <td>最后一次修改的时间</td>
          <td>专家工作的年限</td>
          <td>专家连续未参加评标的次数</td>
           <td>删除</td>
       </tr>
    <c:forEach items="${professor.data}" var="p">

        <tr>
            <td>${p.id}</td>
            <td>${p.professorName}</td>
            <td>${p.gender}</td>
            <td>${p.birthday}</td>
            <td>${p.identityNumber}</td>
            <td>${p.workStatus}</td>
            <td>${p.institution}</td>
            <td>${p.education}</td>
            <td>${p.major}</td>
            <td>${p.employCompany}</td>
            <td>${p.administrative}</td>
            <td>${p.technicalPost}</td>
            <td>${p.phone}</td>
            <td>${p.mobliePhone}</td>
            <td>${p.address}</td>
            <td>${p.projectCategory}</td>
            <td>${p.createBy}</td>
            <td>${p.createDate}</td>
            <td>${p.modifyBy}</td>
            <td>${p.modifyDate}</td>
            <td>${p.workDate}</td>
            <td>${p.lostNum}</td>

            <td>
                <a href="/professorDel-${p.id}.jhtml">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
<p >
    <a href="?pageNo=1">首页</a>
    <a href="?pageNo=${pageNo-1}">上一页</a>
    ${pageNo}
    <a href="?pageNo=${pageNo+1}">下一页</a>
</p>
<h2><a href="userSearch.jhtml">用户查询</a></h2>
<h2><a href="professorSearch.jhtml">专家查询</a></h2>
</body>
</html>
